/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * GUI_Frame.java
 *
 * Created on Apr 8, 2011, 6:52:55 AM
 */

import java.util.*;

/**
 *
 * @author Galilei
 */
public class GUI_Frame extends javax.swing.JFrame {

    /** Creates new form GUI_Frame */
    public GUI_Frame() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        CenterPanel = new javax.swing.JTabbedPane();
        LoginPanel = new javax.swing.JPanel();
        LoginPanel_LoginPanel = new javax.swing.JPanel();
        LoginPanel_LoginPanel_PasswordField = new javax.swing.JPasswordField();
        LoginPanel_LoginPanel_UsernameField = new javax.swing.JTextField();
        LoginPanel_LoginPanel_UsernameLabel = new javax.swing.JLabel();
        LoginPanel_LoginPanel_PasswordLabel = new javax.swing.JLabel();
        LoginPanel_SubmitButton = new javax.swing.JButton();
        PatientPanel = new javax.swing.JPanel();
        PatientPanel_LogoutButton = new javax.swing.JButton();
        PatientPanel_ReqPanel = new javax.swing.JPanel();
        PatientPanel_ReqPanel_PrevMonthButton = new javax.swing.JButton();
        PatientPanel_ReqPanel_CancelButton = new javax.swing.JButton();
        PatientPanel_ReqPanel_NextDayButton = new javax.swing.JButton();
        PatientPanel_ReqPanel_NextMonthButton = new javax.swing.JButton();
        PatientPanel_ReqPanel_ReqTimeLabel = new javax.swing.JLabel();
        PatientPanel_ReqPanel_PrevDayButton = new javax.swing.JButton();
        PatientPanel_ReqPanel_PrevSlotButton = new javax.swing.JButton();
        PatientPanel_ReqPanel_ReasonTextField = new javax.swing.JTextField();
        PatientPanel_ReqPanel_NextSlotButton = new javax.swing.JButton();
        PatientPanel_ReqPanel_DesiredDoctorInput = new javax.swing.JTextField();
        PatientPanel_ReqPanel_SubmitButton = new javax.swing.JButton();
        PatientPanel_ReqPanel_DesiredDoctorList = new javax.swing.JComboBox();
        PatientPanel_ReqPanel_DesiredDoctorLabel = new javax.swing.JLabel();
        PatientPanel_ReqPanel_JSeparator1 = new javax.swing.JSeparator();
        PatientPanel_ReqPanel_JSeparator2 = new javax.swing.JSeparator();
        PatientPanel_ReqPanel_JSeparator3 = new javax.swing.JSeparator();
        PatientPanel_MedHistoryPanel = new javax.swing.JPanel();
        PatientPanel_MedHistoryPanel_PrevButton = new javax.swing.JButton();
        PatientPanel_MedHistoryPanel_NextButton = new javax.swing.JButton();
        PatientPanel_MedHistoryPanel_ViewScrollPane = new javax.swing.JScrollPane();
        PatientPanel_MedHistoryPanel_ViewTextArea = new javax.swing.JTextArea();
        PatientPanel_InfoPanel = new javax.swing.JPanel();
        PatientPanel_InfoPanel_InfoScrollPane = new javax.swing.JScrollPane();
        PatientPanel_InfoPanel_InfoTextArea = new javax.swing.JTextArea();
        AppointmentSchedulePanel = new javax.swing.JPanel();
        AppointmentSchedulePanel_SchedulePanel = new javax.swing.JPanel();
        AppointmentSchedulePanel_SchedulePanel_ApptViewScrollPane = new javax.swing.JScrollPane();
        AppointmentSchedulePanel_SchedulePanel_ApptViewTextArea = new javax.swing.JTextArea();
        AppointmentSchedulePanel_SchedulePanel_PrevApptButton = new javax.swing.JButton();
        AppointmentSchedulePanel_SchedulePanel_DoApptButton = new javax.swing.JButton();
        AppointmentSchedulePanel_SchedulePanel_NextApptButton = new javax.swing.JButton();
        AppointmentSchedulePanel_LogoutButton = new javax.swing.JButton();
        UserControlPanel = new javax.swing.JPanel();
        UserControlPanel_ControlPanel = new javax.swing.JPanel();
        UserControlPanel_ControlPanel_ClearUserButton = new javax.swing.JButton();
        UserControlPanel_ControlPanel_DeleteUserButton = new javax.swing.JButton();
        UserControlPanel_ControlPanel_SaveChangesButton = new javax.swing.JButton();
        UserControlPanel_ControlPanel_ResetChangesButton = new javax.swing.JButton();
        UserControlPanel_ControlPanel_JSeparator1 = new javax.swing.JSeparator();
        UserControlPanel_ControlPanel_UserSearchInput = new javax.swing.JTextField();
        UserControlPanel_ControlPanel_UserSearchList = new javax.swing.JComboBox();
        UserControlPanel_ControlPanel_LoadUserButton = new javax.swing.JButton();
        UserControlPanel_ControlPanel_JSeparator2 = new javax.swing.JSeparator();
        UserControlPanel_UserPanel = new javax.swing.JPanel();
        UserControlPanel_UserPanel_JSeparator1 = new javax.swing.JSeparator();
        UserControlPanel_UserPanel_FirstNameLabel = new javax.swing.JLabel();
        UserControlPanel_UserPanel_FirstNameTextField = new javax.swing.JTextField();
        UserControlPanel_UserPanel_MiddleNameLabel = new javax.swing.JLabel();
        UserControlPanel_UserPanel_MiddleNameTextField = new javax.swing.JTextField();
        UserControlPanel_UserPanel_LastNameLabel = new javax.swing.JLabel();
        UserControlPanel_UserPanel_LastNameTextField = new javax.swing.JTextField();
        UserControlPanel_UserPanel_SuffixLabel = new javax.swing.JLabel();
        UserControlPanel_UserPanel_SuffixTextField = new javax.swing.JTextField();
        UserControlPanel_UserPanel_UsernameLabel = new javax.swing.JLabel();
        UserControlPanel_UserPanel_UsernameTextField = new javax.swing.JTextField();
        UserControlPanel_UserPanel_PasswordLabel = new javax.swing.JLabel();
        UserControlPanel_UserPanel_PasswordField = new javax.swing.JPasswordField();
        UserControlPanel_UserPanel_ChangePasswordButton = new javax.swing.JButton();
        UserControlPanel_UserPanel_TitleLabel = new javax.swing.JLabel();
        UserControlPanel_UserPanel_TitleComboBox = new javax.swing.JComboBox();
        UserControlPanel_UserPanel_IDLabel = new javax.swing.JLabel();
        UserControlPanel_UserPanel_IDValueLabel = new javax.swing.JLabel();
        UserControlPanel_UserPanel_LevelLabel = new javax.swing.JLabel();
        UserControlPanel_UserPanel_LevelComboBox = new javax.swing.JComboBox();
        UserControlPanel_UserPanel_SuspendedCheckBox = new javax.swing.JCheckBox();
        UserControlPanel_LogoutButton = new javax.swing.JButton();
        PatientControlPanel1 = new javax.swing.JPanel();
        PatientControlPanel1_ControlPanel = new javax.swing.JPanel();
        PatientControlPanel1_ControlPanel_ClearPatientButton = new javax.swing.JButton();
        PatientControlPanel1_ControlPanel_DeletePatientButton = new javax.swing.JButton();
        PatientControlPanel1_ControlPanel_SaveChangesButton = new javax.swing.JButton();
        PatientControlPanel1_ControlPanel_ResetChangesButton = new javax.swing.JButton();
        PatientControlPanel1_ControlPanel_JSeparator1 = new javax.swing.JSeparator();
        PatientControlPanel1_ControlPanel_PatientSearchInput = new javax.swing.JTextField();
        PatientControlPanel1_ControlPanel_PatientSearchList = new javax.swing.JComboBox();
        PatientControlPanel1_ControlPanel_LoadPatientButton = new javax.swing.JButton();
        PatientControlPanel1_ControlPanel_JSeparator2 = new javax.swing.JSeparator();
        PatientControlPanel1_PatientPanel = new javax.swing.JPanel();
        PatientControlPanel1_PatientPanel_JSeparator4 = new javax.swing.JSeparator();
        PatientControlPanel1_PatientPanel_JSeparator2 = new javax.swing.JSeparator();
        PatientControlPanel1_PatientPanel_FirstNameLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_FirstNameTextField = new javax.swing.JTextField();
        PatientControlPanel1_PatientPanel_MiddleNameLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_MiddleNameTextField = new javax.swing.JTextField();
        PatientControlPanel1_PatientPanel_LastNameLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_LastNameTextField = new javax.swing.JTextField();
        PatientControlPanel1_PatientPanel_SuffixLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_SuffixTextField = new javax.swing.JTextField();
        PatientControlPanel1_PatientPanel_UsernameLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_PhoneTextField = new javax.swing.JTextField();
        PatientControlPanel1_PatientPanel_PasswordLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_PasswordField = new javax.swing.JPasswordField();
        PatientControlPanel1_PatientPanel_ChangePasswordButton = new javax.swing.JButton();
        PatientControlPanel1_PatientPanel_TitleLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_TitleComboBox = new javax.swing.JComboBox();
        PatientControlPanel1_PatientPanel_IDLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_IDValueLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_JSeparator5 = new javax.swing.JSeparator();
        PatientControlPanel1_PatientPanel_AddressLine1Label = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_AddressLine2Label = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_AddressLine3Label = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_AddressLine1TextField = new javax.swing.JTextField();
        PatientControlPanel1_PatientPanel_AddressLine2TextField = new javax.swing.JTextField();
        PatientControlPanel1_PatientPanel_AddressLine3TextField = new javax.swing.JTextField();
        PatientControlPanel1_PatientPanel_PhoneLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_UsernameTextField = new javax.swing.JTextField();
        PatientControlPanel1_PatientPanel_SuspendedCheckBox = new javax.swing.JCheckBox();
        PatientControlPanel1_PatientPanel_EmailLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_EmailTextField = new javax.swing.JTextField();
        PatientControlPanel1_PatientPanel_PharmacyLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_PharmacyTextField = new javax.swing.JTextField();
        PatientControlPanel1_PatientPanel_AgeLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_JSeparator3 = new javax.swing.JSeparator();
        PatientControlPanel1_PatientPanel_GenderLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_GenderComboBox = new javax.swing.JComboBox();
        PatientControlPanel1_PatientPanel_JSeparator1 = new javax.swing.JSeparator();
        PatientControlPanel1_PatientPanel_AgeSpinner = new javax.swing.JSpinner();
        PatientControlPanel1_PatientPanel_InsuranceLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_AllergiesLabel = new javax.swing.JLabel();
        PatientControlPanel1_PatientPanel_InsuranceTextField = new javax.swing.JTextField();
        PatientControlPanel1_PatientPanel_AllergiesTextField = new javax.swing.JTextField();
        PatientControlPanel1_PatientPanel_TreatmentViewScrollPane = new javax.swing.JScrollPane();
        PatientControlPanel1_PatientPanel_TreatmentViewTextArea = new javax.swing.JTextArea();
        PatientControlPanel1_PatientPanel_PrevTreatmentButton = new javax.swing.JButton();
        PatientControlPanel1_PatientPanel_EditTreatmentButton = new javax.swing.JButton();
        PatientControlPanel1_PatientPanel_NextTreatmentButton = new javax.swing.JButton();
        PatientControlPanel1_LogoutButton = new javax.swing.JButton();
        PatientControlPanel2 = new javax.swing.JPanel();
        PatientControlPanel2_ControlPanel = new javax.swing.JPanel();
        PatientControlPanel2_ControlPanel_ClearPatientButton = new javax.swing.JButton();
        PatientControlPanel2_ControlPanel_DeletePatientButton = new javax.swing.JButton();
        PatientControlPanel2_ControlPanel_SaveChangesButton = new javax.swing.JButton();
        PatientControlPanel2_ControlPanel_ResetChangesButton = new javax.swing.JButton();
        PatientControlPanel2_ControlPanel_JSeparator1 = new javax.swing.JSeparator();
        PatientControlPanel2_ControlPanel_PatientSearchInput = new javax.swing.JTextField();
        PatientControlPanel2_ControlPanel_PatientSearchList = new javax.swing.JComboBox();
        PatientControlPanel2_ControlPanel_LoadPatientButton = new javax.swing.JButton();
        PatientControlPanel2_ControlPanel_JSeparator2 = new javax.swing.JSeparator();
        PatientControlPanel2_LogoutButton = new javax.swing.JButton();
        PatientControlPanel2_TreatmentPanel = new javax.swing.JPanel();
        PatientControlPanel2_TreatmentPanel_ApptIDLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_ApptIDValueLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_JSeparator4 = new javax.swing.JSeparator();
        PatientControlPanel2_TreatmentPanel_BloodPressureLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_PulseLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_TemperatureLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_HeightLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_WeightLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_DiagnosisLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_DoctorsOrdersLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_JSeparator3 = new javax.swing.JSeparator();
        PatientControlPanel2_TreatmentPanel_PulseSpinner = new javax.swing.JSpinner();
        PatientControlPanel2_TreatmentPanel_BloodPressureOverLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_BloodPressureSystolicSpinner = new javax.swing.JSpinner();
        PatientControlPanel2_TreatmentPanel_BloodPressureDiastolicSpinner = new javax.swing.JSpinner();
        PatientControlPanel2_TreatmentPanel_TemperatureSpinner = new javax.swing.JSpinner();
        PatientControlPanel2_TreatmentPanel_HeightSpinner = new javax.swing.JSpinner();
        PatientControlPanel2_TreatmentPanel_WeightSpinner = new javax.swing.JSpinner();
        PatientControlPanel2_TreatmentPanel_HeightUnitLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_TemperatureUnitLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_WeightUnitLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_PulseUnitLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_AttendingNurseSearchInput = new javax.swing.JTextField();
        PatientControlPanel2_TreatmentPanel_AttendingNurseSearchList = new javax.swing.JComboBox();
        PatientControlPanel2_TreatmentPanel_AttendingNurseLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_JSeparator1 = new javax.swing.JSeparator();
        PatientControlPanel2_TreatmentPanel_JSeparator2 = new javax.swing.JSeparator();
        PatientControlPanel2_TreatmentPanel_AttendingDoctorLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_AttendingDoctorSearchInput = new javax.swing.JTextField();
        PatientControlPanel2_TreatmentPanel_AttendingDoctorSearchList = new javax.swing.JComboBox();
        PatientControlPanel2_TreatmentPanel_ReqDocLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_ApptReasonLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_ReqTimeLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_DoctorsOrdersScrollPane = new javax.swing.JScrollPane();
        PatientControlPanel2_TreatmentPanel_DoctorsOrdersTextArea = new javax.swing.JTextArea();
        PatientControlPanel2_TreatmentPanel_ReqTimeValueLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_ApptReasonValueLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_ReqDocValueLabel = new javax.swing.JLabel();
        PatientControlPanel2_TreatmentPanel_DiagnosisScrollPane = new javax.swing.JScrollPane();
        PatientControlPanel2_TreatmentPanel_DiagnosisTextArea = new javax.swing.JTextArea();
        PatientControlPanel2_TreatmentPanel_BloodPressureUnitLabel = new javax.swing.JLabel();
        TopLabel = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);

        CenterPanel.setTabPlacement(javax.swing.JTabbedPane.BOTTOM);

        LoginPanel.setLayout(new java.awt.GridBagLayout());

        LoginPanel_LoginPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Login"));
        LoginPanel_LoginPanel.setLayout(new java.awt.GridBagLayout());

        LoginPanel_LoginPanel_PasswordField.setText("password");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        LoginPanel_LoginPanel.add(LoginPanel_LoginPanel_PasswordField, gridBagConstraints);

        LoginPanel_LoginPanel_UsernameField.setText("username");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        LoginPanel_LoginPanel.add(LoginPanel_LoginPanel_UsernameField, gridBagConstraints);

        LoginPanel_LoginPanel_UsernameLabel.setText("Username");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        LoginPanel_LoginPanel.add(LoginPanel_LoginPanel_UsernameLabel, gridBagConstraints);

        LoginPanel_LoginPanel_PasswordLabel.setText("Password");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        LoginPanel_LoginPanel.add(LoginPanel_LoginPanel_PasswordLabel, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        LoginPanel.add(LoginPanel_LoginPanel, gridBagConstraints);

        LoginPanel_SubmitButton.setText("Submit");
        LoginPanel_SubmitButton.setToolTipText("Log In");
        LoginPanel_SubmitButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                LoginPanel_SubmitButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        LoginPanel.add(LoginPanel_SubmitButton, gridBagConstraints);

        CenterPanel.addTab("Login", LoginPanel);

        PatientPanel.setLayout(new java.awt.GridBagLayout());

        PatientPanel_LogoutButton.setText("Log out");
        PatientPanel_LogoutButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientPanel_LogoutButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel.add(PatientPanel_LogoutButton, gridBagConstraints);

        PatientPanel_ReqPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Request an Appointment"));
        PatientPanel_ReqPanel.setLayout(new java.awt.GridBagLayout());

        PatientPanel_ReqPanel_PrevMonthButton.setText("Prev Month");
        PatientPanel_ReqPanel_PrevMonthButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientPanel_ReqPanel_PrevMonthButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_PrevMonthButton, gridBagConstraints);

        PatientPanel_ReqPanel_CancelButton.setText("Cancel");
        PatientPanel_ReqPanel_CancelButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientPanel_ReqPanel_CancelButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_CancelButton, gridBagConstraints);

        PatientPanel_ReqPanel_NextDayButton.setText("Next Day");
        PatientPanel_ReqPanel_NextDayButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientPanel_ReqPanel_NextDayButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_NextDayButton, gridBagConstraints);

        PatientPanel_ReqPanel_NextMonthButton.setText("Next Month");
        PatientPanel_ReqPanel_NextMonthButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientPanel_ReqPanel_NextMonthButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_NextMonthButton, gridBagConstraints);

        PatientPanel_ReqPanel_ReqTimeLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        PatientPanel_ReqPanel_ReqTimeLabel.setText("Apr 15, 2011 @ 12:00");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_ReqTimeLabel, gridBagConstraints);

        PatientPanel_ReqPanel_PrevDayButton.setText("Prev Day");
        PatientPanel_ReqPanel_PrevDayButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientPanel_ReqPanel_PrevDayButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_PrevDayButton, gridBagConstraints);

        PatientPanel_ReqPanel_PrevSlotButton.setText("Prev Slot");
        PatientPanel_ReqPanel_PrevSlotButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientPanel_ReqPanel_PrevSlotButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_PrevSlotButton, gridBagConstraints);

        PatientPanel_ReqPanel_ReasonTextField.setText("Specify reason for appointment here.");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_ReasonTextField, gridBagConstraints);

        PatientPanel_ReqPanel_NextSlotButton.setText("Next Slot");
        PatientPanel_ReqPanel_NextSlotButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientPanel_ReqPanel_NextSlotButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_NextSlotButton, gridBagConstraints);

        PatientPanel_ReqPanel_DesiredDoctorInput.setText("Specify desired doctor here.");
        PatientPanel_ReqPanel_DesiredDoctorInput.addInputMethodListener(new java.awt.event.InputMethodListener() {
            public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
                PatientPanel_ReqPanel_DesiredDoctorInputCaretPositionChanged(evt);
            }
            public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_DesiredDoctorInput, gridBagConstraints);

        PatientPanel_ReqPanel_SubmitButton.setText("Submit");
        PatientPanel_ReqPanel_SubmitButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientPanel_ReqPanel_SubmitButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_SubmitButton, gridBagConstraints);

        PatientPanel_ReqPanel_DesiredDoctorList.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_DesiredDoctorList, gridBagConstraints);

        PatientPanel_ReqPanel_DesiredDoctorLabel.setText("Desired Doctor");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_DesiredDoctorLabel, gridBagConstraints);

        PatientPanel_ReqPanel_JSeparator1.setForeground(new java.awt.Color(204, 204, 204));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_JSeparator1, gridBagConstraints);

        PatientPanel_ReqPanel_JSeparator2.setForeground(new java.awt.Color(204, 204, 204));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_JSeparator2, gridBagConstraints);

        PatientPanel_ReqPanel_JSeparator3.setForeground(new java.awt.Color(204, 204, 204));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_ReqPanel.add(PatientPanel_ReqPanel_JSeparator3, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weighty = 1.0;
        PatientPanel.add(PatientPanel_ReqPanel, gridBagConstraints);

        PatientPanel_MedHistoryPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("View my Medical History"));
        PatientPanel_MedHistoryPanel.setLayout(new java.awt.GridBagLayout());

        PatientPanel_MedHistoryPanel_PrevButton.setText("Previous Treatment Record");
        PatientPanel_MedHistoryPanel_PrevButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientPanel_MedHistoryPanel_PrevButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_MedHistoryPanel.add(PatientPanel_MedHistoryPanel_PrevButton, gridBagConstraints);

        PatientPanel_MedHistoryPanel_NextButton.setText("Next Treatment Record");
        PatientPanel_MedHistoryPanel_NextButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientPanel_MedHistoryPanel_NextButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_MedHistoryPanel.add(PatientPanel_MedHistoryPanel_NextButton, gridBagConstraints);

        PatientPanel_MedHistoryPanel_ViewTextArea.setColumns(20);
        PatientPanel_MedHistoryPanel_ViewTextArea.setRows(5);
        PatientPanel_MedHistoryPanel_ViewTextArea.setText("Appointment ID: 10002\nRequest Info: April 11, 2011 @ 09:00 w/ John Doe\n\"Acute abrasions in dermal tissue\"\n\nAttending Nurse: Jane Deere\nAttending Doctor: John Doe\nAppointment time: April 11, 2011 @ 09:30\n\nSymptoms:\nBlood evident on fingers and cause, paper.\n\nVital Signs:\nBlood Pressure 120/80\nPulse 72 bpm\nTemperature 98 °F\nHeight 66 in\nWeight 150 lbs");
        PatientPanel_MedHistoryPanel_ViewTextArea.setEnabled(false);
        PatientPanel_MedHistoryPanel_ViewScrollPane.setViewportView(PatientPanel_MedHistoryPanel_ViewTextArea);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_MedHistoryPanel.add(PatientPanel_MedHistoryPanel_ViewScrollPane, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        PatientPanel.add(PatientPanel_MedHistoryPanel, gridBagConstraints);

        PatientPanel_InfoPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Patient Info"));
        PatientPanel_InfoPanel.setLayout(new java.awt.GridBagLayout());

        PatientPanel_InfoPanel_InfoScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);

        PatientPanel_InfoPanel_InfoTextArea.setColumns(20);
        PatientPanel_InfoPanel_InfoTextArea.setLineWrap(true);
        PatientPanel_InfoPanel_InfoTextArea.setRows(5);
        PatientPanel_InfoPanel_InfoTextArea.setText("User 96: WaterFireEarthAir\nNot Suspended\nMr. Water FireAether Air Earth\nMale, 30 years old\n\n266 Ferst Drive\nAtlanta, GA 30332-0765\n\n000.000.0000\nwhat.9000@thats.impossible\n\nPharmacy: ACME FARM-A-SEE\nInsurance: iSurance\nAllergies: Hydrogen hydroxide, Dihidrogen monoxide");
        PatientPanel_InfoPanel_InfoTextArea.setWrapStyleWord(true);
        PatientPanel_InfoPanel_InfoTextArea.setEnabled(false);
        PatientPanel_InfoPanel_InfoScrollPane.setViewportView(PatientPanel_InfoPanel_InfoTextArea);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientPanel_InfoPanel.add(PatientPanel_InfoPanel_InfoScrollPane, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weighty = 1.0;
        PatientPanel.add(PatientPanel_InfoPanel, gridBagConstraints);

        CenterPanel.addTab("Patient", PatientPanel);

        AppointmentSchedulePanel.setLayout(new java.awt.GridBagLayout());

        AppointmentSchedulePanel_SchedulePanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Appointment Schedule"));
        AppointmentSchedulePanel_SchedulePanel.setLayout(new java.awt.GridBagLayout());

        AppointmentSchedulePanel_SchedulePanel_ApptViewTextArea.setColumns(20);
        AppointmentSchedulePanel_SchedulePanel_ApptViewTextArea.setRows(5);
        AppointmentSchedulePanel_SchedulePanel_ApptViewScrollPane.setViewportView(AppointmentSchedulePanel_SchedulePanel_ApptViewTextArea);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        AppointmentSchedulePanel_SchedulePanel.add(AppointmentSchedulePanel_SchedulePanel_ApptViewScrollPane, gridBagConstraints);

        AppointmentSchedulePanel_SchedulePanel_PrevApptButton.setText("Prev Appointment");
        AppointmentSchedulePanel_SchedulePanel_PrevApptButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AppointmentSchedulePanel_SchedulePanel_PrevApptButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        AppointmentSchedulePanel_SchedulePanel.add(AppointmentSchedulePanel_SchedulePanel_PrevApptButton, gridBagConstraints);

        AppointmentSchedulePanel_SchedulePanel_DoApptButton.setText("Do Appointment");
        AppointmentSchedulePanel_SchedulePanel_DoApptButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AppointmentSchedulePanel_SchedulePanel_DoApptButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        AppointmentSchedulePanel_SchedulePanel.add(AppointmentSchedulePanel_SchedulePanel_DoApptButton, gridBagConstraints);

        AppointmentSchedulePanel_SchedulePanel_NextApptButton.setText("Next Appointment");
        AppointmentSchedulePanel_SchedulePanel_NextApptButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AppointmentSchedulePanel_SchedulePanel_NextApptButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        AppointmentSchedulePanel_SchedulePanel.add(AppointmentSchedulePanel_SchedulePanel_NextApptButton, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        AppointmentSchedulePanel.add(AppointmentSchedulePanel_SchedulePanel, gridBagConstraints);

        AppointmentSchedulePanel_LogoutButton.setText("Log out");
        AppointmentSchedulePanel_LogoutButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AppointmentSchedulePanel_LogoutButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        AppointmentSchedulePanel.add(AppointmentSchedulePanel_LogoutButton, gridBagConstraints);

        CenterPanel.addTab("Appointment Schedule", AppointmentSchedulePanel);

        UserControlPanel.setLayout(new java.awt.GridBagLayout());

        UserControlPanel_ControlPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Control"));
        UserControlPanel_ControlPanel.setLayout(new java.awt.GridBagLayout());

        UserControlPanel_ControlPanel_ClearUserButton.setText("New/Clear User");
        UserControlPanel_ControlPanel_ClearUserButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UserControlPanel_ControlPanel_ClearUserButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_ControlPanel.add(UserControlPanel_ControlPanel_ClearUserButton, gridBagConstraints);

        UserControlPanel_ControlPanel_DeleteUserButton.setText("Delete User");
        UserControlPanel_ControlPanel_DeleteUserButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UserControlPanel_ControlPanel_DeleteUserButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_ControlPanel.add(UserControlPanel_ControlPanel_DeleteUserButton, gridBagConstraints);

        UserControlPanel_ControlPanel_SaveChangesButton.setText("Save Changes");
        UserControlPanel_ControlPanel_SaveChangesButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UserControlPanel_ControlPanel_SaveChangesButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 6;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_ControlPanel.add(UserControlPanel_ControlPanel_SaveChangesButton, gridBagConstraints);

        UserControlPanel_ControlPanel_ResetChangesButton.setText("Reset Changes");
        UserControlPanel_ControlPanel_ResetChangesButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UserControlPanel_ControlPanel_ResetChangesButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 7;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_ControlPanel.add(UserControlPanel_ControlPanel_ResetChangesButton, gridBagConstraints);

        UserControlPanel_ControlPanel_JSeparator1.setForeground(new java.awt.Color(204, 204, 204));
        UserControlPanel_ControlPanel_JSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_ControlPanel.add(UserControlPanel_ControlPanel_JSeparator1, gridBagConstraints);

        UserControlPanel_ControlPanel_UserSearchInput.setText("Specify user here.");
        UserControlPanel_ControlPanel_UserSearchInput.addInputMethodListener(new java.awt.event.InputMethodListener() {
            public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
                UserControlPanel_ControlPanel_UserSearchInputCaretPositionChanged(evt);
            }
            public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5);
        UserControlPanel_ControlPanel.add(UserControlPanel_ControlPanel_UserSearchInput, gridBagConstraints);

        UserControlPanel_ControlPanel_UserSearchList.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5);
        UserControlPanel_ControlPanel.add(UserControlPanel_ControlPanel_UserSearchList, gridBagConstraints);

        UserControlPanel_ControlPanel_LoadUserButton.setText("Load User");
        UserControlPanel_ControlPanel_LoadUserButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UserControlPanel_ControlPanel_LoadUserButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_ControlPanel.add(UserControlPanel_ControlPanel_LoadUserButton, gridBagConstraints);

        UserControlPanel_ControlPanel_JSeparator2.setForeground(new java.awt.Color(204, 204, 204));
        UserControlPanel_ControlPanel_JSeparator2.setOrientation(javax.swing.SwingConstants.VERTICAL);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_ControlPanel.add(UserControlPanel_ControlPanel_JSeparator2, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        UserControlPanel.add(UserControlPanel_ControlPanel, gridBagConstraints);

        UserControlPanel_UserPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("User"));
        UserControlPanel_UserPanel.setLayout(new java.awt.GridBagLayout());

        UserControlPanel_UserPanel_JSeparator1.setForeground(new java.awt.Color(204, 204, 204));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_JSeparator1, gridBagConstraints);

        UserControlPanel_UserPanel_FirstNameLabel.setText("First");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_FirstNameLabel, gridBagConstraints);

        UserControlPanel_UserPanel_FirstNameTextField.setText("Water");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_FirstNameTextField, gridBagConstraints);

        UserControlPanel_UserPanel_MiddleNameLabel.setText("Middle");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_MiddleNameLabel, gridBagConstraints);

        UserControlPanel_UserPanel_MiddleNameTextField.setText("FireAether");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_MiddleNameTextField, gridBagConstraints);

        UserControlPanel_UserPanel_LastNameLabel.setText("Last");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_LastNameLabel, gridBagConstraints);

        UserControlPanel_UserPanel_LastNameTextField.setText("Air");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_LastNameTextField, gridBagConstraints);

        UserControlPanel_UserPanel_SuffixLabel.setText("Suffix");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_SuffixLabel, gridBagConstraints);

        UserControlPanel_UserPanel_SuffixTextField.setText("Earth");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_SuffixTextField, gridBagConstraints);

        UserControlPanel_UserPanel_UsernameLabel.setText("Username");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_UsernameLabel, gridBagConstraints);

        UserControlPanel_UserPanel_UsernameTextField.setText("WaterFireEarthAir");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_UsernameTextField, gridBagConstraints);

        UserControlPanel_UserPanel_PasswordLabel.setText("Password");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_PasswordLabel, gridBagConstraints);

        UserControlPanel_UserPanel_PasswordField.setText("password");
        UserControlPanel_UserPanel_PasswordField.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_PasswordField, gridBagConstraints);

        UserControlPanel_UserPanel_ChangePasswordButton.setText("Change Password");
        UserControlPanel_UserPanel_ChangePasswordButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UserControlPanel_UserPanel_ChangePasswordButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_ChangePasswordButton, gridBagConstraints);

        UserControlPanel_UserPanel_TitleLabel.setText("Title");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_TitleLabel, gridBagConstraints);

        UserControlPanel_UserPanel_TitleComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mr.", "Mrs.", "Ms.", "Dr.", "Rev." }));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_TitleComboBox, gridBagConstraints);

        UserControlPanel_UserPanel_IDLabel.setText("ID#");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_IDLabel, gridBagConstraints);

        UserControlPanel_UserPanel_IDValueLabel.setText("96");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_IDValueLabel, gridBagConstraints);

        UserControlPanel_UserPanel_LevelLabel.setText("Level");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_LevelLabel, gridBagConstraints);

        UserControlPanel_UserPanel_LevelComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Patient", "Nurse", "Doctor", "System Admin" }));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_LevelComboBox, gridBagConstraints);

        UserControlPanel_UserPanel_SuspendedCheckBox.setText("Suspended");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel_UserPanel.add(UserControlPanel_UserPanel_SuspendedCheckBox, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weighty = 1.0;
        UserControlPanel.add(UserControlPanel_UserPanel, gridBagConstraints);

        UserControlPanel_LogoutButton.setText("Log out");
        UserControlPanel_LogoutButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                UserControlPanel_LogoutButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        UserControlPanel.add(UserControlPanel_LogoutButton, gridBagConstraints);

        CenterPanel.addTab("User Control", UserControlPanel);

        PatientControlPanel1.setLayout(new java.awt.GridBagLayout());

        PatientControlPanel1_ControlPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Control"));
        PatientControlPanel1_ControlPanel.setLayout(new java.awt.GridBagLayout());

        PatientControlPanel1_ControlPanel_ClearPatientButton.setText("New/Clear Patient");
        PatientControlPanel1_ControlPanel_ClearPatientButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel1_ControlPanel_ClearPatientButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_ControlPanel.add(PatientControlPanel1_ControlPanel_ClearPatientButton, gridBagConstraints);

        PatientControlPanel1_ControlPanel_DeletePatientButton.setText("Delete Patient");
        PatientControlPanel1_ControlPanel_DeletePatientButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel1_ControlPanel_DeletePatientButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_ControlPanel.add(PatientControlPanel1_ControlPanel_DeletePatientButton, gridBagConstraints);

        PatientControlPanel1_ControlPanel_SaveChangesButton.setText("Save Changes");
        PatientControlPanel1_ControlPanel_SaveChangesButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel1_ControlPanel_SaveChangesButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 6;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_ControlPanel.add(PatientControlPanel1_ControlPanel_SaveChangesButton, gridBagConstraints);

        PatientControlPanel1_ControlPanel_ResetChangesButton.setText("Reset Changes");
        PatientControlPanel1_ControlPanel_ResetChangesButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel1_ControlPanel_ResetChangesButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 7;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_ControlPanel.add(PatientControlPanel1_ControlPanel_ResetChangesButton, gridBagConstraints);

        PatientControlPanel1_ControlPanel_JSeparator1.setForeground(new java.awt.Color(204, 204, 204));
        PatientControlPanel1_ControlPanel_JSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_ControlPanel.add(PatientControlPanel1_ControlPanel_JSeparator1, gridBagConstraints);

        PatientControlPanel1_ControlPanel_PatientSearchInput.setText("Specify patient here.");
        PatientControlPanel1_ControlPanel_PatientSearchInput.addInputMethodListener(new java.awt.event.InputMethodListener() {
            public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
                PatientControlPanel1_ControlPanel_PatientSearchInputCaretPositionChanged(evt);
            }
            public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5);
        PatientControlPanel1_ControlPanel.add(PatientControlPanel1_ControlPanel_PatientSearchInput, gridBagConstraints);

        PatientControlPanel1_ControlPanel_PatientSearchList.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5);
        PatientControlPanel1_ControlPanel.add(PatientControlPanel1_ControlPanel_PatientSearchList, gridBagConstraints);

        PatientControlPanel1_ControlPanel_LoadPatientButton.setText("Load Patient");
        PatientControlPanel1_ControlPanel_LoadPatientButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel1_ControlPanel_LoadPatientButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_ControlPanel.add(PatientControlPanel1_ControlPanel_LoadPatientButton, gridBagConstraints);

        PatientControlPanel1_ControlPanel_JSeparator2.setForeground(new java.awt.Color(204, 204, 204));
        PatientControlPanel1_ControlPanel_JSeparator2.setOrientation(javax.swing.SwingConstants.VERTICAL);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_ControlPanel.add(PatientControlPanel1_ControlPanel_JSeparator2, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        PatientControlPanel1.add(PatientControlPanel1_ControlPanel, gridBagConstraints);

        PatientControlPanel1_PatientPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Patient"));
        PatientControlPanel1_PatientPanel.setLayout(new java.awt.GridBagLayout());

        PatientControlPanel1_PatientPanel_JSeparator4.setForeground(new java.awt.Color(204, 204, 204));
        PatientControlPanel1_PatientPanel_JSeparator4.setOrientation(javax.swing.SwingConstants.VERTICAL);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 17;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_JSeparator4, gridBagConstraints);

        PatientControlPanel1_PatientPanel_JSeparator2.setForeground(new java.awt.Color(204, 204, 204));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.gridwidth = 4;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_JSeparator2, gridBagConstraints);

        PatientControlPanel1_PatientPanel_FirstNameLabel.setText("First");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_FirstNameLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_FirstNameTextField.setText("Water");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_FirstNameTextField, gridBagConstraints);

        PatientControlPanel1_PatientPanel_MiddleNameLabel.setText("Middle");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_MiddleNameLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_MiddleNameTextField.setText("FireAether");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_MiddleNameTextField, gridBagConstraints);

        PatientControlPanel1_PatientPanel_LastNameLabel.setText("Last");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_LastNameLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_LastNameTextField.setText("Air");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_LastNameTextField, gridBagConstraints);

        PatientControlPanel1_PatientPanel_SuffixLabel.setText("Suffix");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_SuffixLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_SuffixTextField.setText("Earth");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_SuffixTextField, gridBagConstraints);

        PatientControlPanel1_PatientPanel_UsernameLabel.setText("Username");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_UsernameLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_PhoneTextField.setText("WaterFireEarthAir");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 14;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_PhoneTextField, gridBagConstraints);

        PatientControlPanel1_PatientPanel_PasswordLabel.setText("Password");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_PasswordLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_PasswordField.setText("password");
        PatientControlPanel1_PatientPanel_PasswordField.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_PasswordField, gridBagConstraints);

        PatientControlPanel1_PatientPanel_ChangePasswordButton.setText("Change Password");
        PatientControlPanel1_PatientPanel_ChangePasswordButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel1_PatientPanel_ChangePasswordButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_ChangePasswordButton, gridBagConstraints);

        PatientControlPanel1_PatientPanel_TitleLabel.setText("Title");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_TitleLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_TitleComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Mr.", "Mrs.", "Ms.", "Dr.", "Rev." }));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_TitleComboBox, gridBagConstraints);

        PatientControlPanel1_PatientPanel_IDLabel.setText("ID#");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_IDLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_IDValueLabel.setText("96");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_IDValueLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_JSeparator5.setForeground(new java.awt.Color(204, 204, 204));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.gridwidth = 4;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_JSeparator5, gridBagConstraints);

        PatientControlPanel1_PatientPanel_AddressLine1Label.setText("Address Line 1");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 10;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_AddressLine1Label, gridBagConstraints);

        PatientControlPanel1_PatientPanel_AddressLine2Label.setText("Address Line 2");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 11;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_AddressLine2Label, gridBagConstraints);

        PatientControlPanel1_PatientPanel_AddressLine3Label.setText("Address Line 3");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_AddressLine3Label, gridBagConstraints);

        PatientControlPanel1_PatientPanel_AddressLine1TextField.setText("266 Ferst Drive");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 10;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_AddressLine1TextField, gridBagConstraints);

        PatientControlPanel1_PatientPanel_AddressLine2TextField.setText("Atlanta, GA 30332-0765");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 11;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_AddressLine2TextField, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_AddressLine3TextField, gridBagConstraints);

        PatientControlPanel1_PatientPanel_PhoneLabel.setText("Phone");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 14;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_PhoneLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_UsernameTextField.setText("WaterFireEarthAir");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_UsernameTextField, gridBagConstraints);

        PatientControlPanel1_PatientPanel_SuspendedCheckBox.setText("Suspended");
        PatientControlPanel1_PatientPanel_SuspendedCheckBox.setEnabled(false);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_SuspendedCheckBox, gridBagConstraints);

        PatientControlPanel1_PatientPanel_EmailLabel.setText("Email");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 15;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_EmailLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_EmailTextField.setText("what.9000@thats.impossible");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 15;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_EmailTextField, gridBagConstraints);

        PatientControlPanel1_PatientPanel_PharmacyLabel.setText("Pharmacy");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_PharmacyLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_PharmacyTextField.setText("ACME FARM-A-SEE");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 6;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_PharmacyTextField, gridBagConstraints);

        PatientControlPanel1_PatientPanel_AgeLabel.setText("Age");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 16;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_AgeLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_JSeparator3.setForeground(new java.awt.Color(204, 204, 204));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 13;
        gridBagConstraints.gridwidth = 4;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_JSeparator3, gridBagConstraints);

        PatientControlPanel1_PatientPanel_GenderLabel.setText("Gender");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 16;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_GenderLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_GenderComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "M", "F" }));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 16;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_GenderComboBox, gridBagConstraints);

        PatientControlPanel1_PatientPanel_JSeparator1.setForeground(new java.awt.Color(204, 204, 204));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.gridwidth = 4;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_JSeparator1, gridBagConstraints);

        PatientControlPanel1_PatientPanel_AgeSpinner.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(0), Integer.valueOf(0), null, Integer.valueOf(1)));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 16;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_AgeSpinner, gridBagConstraints);

        PatientControlPanel1_PatientPanel_InsuranceLabel.setText("Insurance Carrier");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_InsuranceLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_AllergiesLabel.setText("Allergies");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_AllergiesLabel, gridBagConstraints);

        PatientControlPanel1_PatientPanel_InsuranceTextField.setText("iSurance");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 6;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_InsuranceTextField, gridBagConstraints);

        PatientControlPanel1_PatientPanel_AllergiesTextField.setText("Hydrogen hydroxide, Dihidrogen monoxide");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 6;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_AllergiesTextField, gridBagConstraints);

        PatientControlPanel1_PatientPanel_TreatmentViewTextArea.setColumns(20);
        PatientControlPanel1_PatientPanel_TreatmentViewTextArea.setRows(5);
        PatientControlPanel1_PatientPanel_TreatmentViewTextArea.setText("Appointment ID: 10002\nRequest Info: April 11, 2011 @ 09:00 w/ John Doe\n\"Acute abrasions in dermal tissue\"\n\nAttending Nurse: Jane Deere\nAttending Doctor: John Doe\nAppointment time: April 11, 2011 @ 09:30\n\nSymptoms:\nBlood evident on fingers and cause, paper.\n\nVital Signs:\nBlood Pressure 120/80\nPulse 72 bpm\nTemperature 98 °F\nHeight 66 in\nWeight 150 lbs");
        PatientControlPanel1_PatientPanel_TreatmentViewTextArea.setEnabled(false);
        PatientControlPanel1_PatientPanel_TreatmentViewScrollPane.setViewportView(PatientControlPanel1_PatientPanel_TreatmentViewTextArea);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.gridwidth = 4;
        gridBagConstraints.gridheight = 11;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_TreatmentViewScrollPane, gridBagConstraints);

        PatientControlPanel1_PatientPanel_PrevTreatmentButton.setText("Previous Treatment");
        PatientControlPanel1_PatientPanel_PrevTreatmentButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel1_PatientPanel_PrevTreatmentButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_PrevTreatmentButton, gridBagConstraints);

        PatientControlPanel1_PatientPanel_EditTreatmentButton.setText("Edit Treatment");
        PatientControlPanel1_PatientPanel_EditTreatmentButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel1_PatientPanel_EditTreatmentButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 7;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_EditTreatmentButton, gridBagConstraints);

        PatientControlPanel1_PatientPanel_NextTreatmentButton.setText("Next Treatment");
        PatientControlPanel1_PatientPanel_NextTreatmentButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel1_PatientPanel_NextTreatmentButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 8;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1_PatientPanel.add(PatientControlPanel1_PatientPanel_NextTreatmentButton, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weighty = 1.0;
        PatientControlPanel1.add(PatientControlPanel1_PatientPanel, gridBagConstraints);

        PatientControlPanel1_LogoutButton.setText("Log out");
        PatientControlPanel1_LogoutButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel1_LogoutButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel1.add(PatientControlPanel1_LogoutButton, gridBagConstraints);

        CenterPanel.addTab("Patient Control 1", PatientControlPanel1);

        PatientControlPanel2.setLayout(new java.awt.GridBagLayout());

        PatientControlPanel2_ControlPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Control"));
        PatientControlPanel2_ControlPanel.setLayout(new java.awt.GridBagLayout());

        PatientControlPanel2_ControlPanel_ClearPatientButton.setText("New/Clear Patient");
        PatientControlPanel2_ControlPanel_ClearPatientButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel2_ControlPanel_ClearPatientButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_ControlPanel.add(PatientControlPanel2_ControlPanel_ClearPatientButton, gridBagConstraints);

        PatientControlPanel2_ControlPanel_DeletePatientButton.setText("Delete Patient");
        PatientControlPanel2_ControlPanel_DeletePatientButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel2_ControlPanel_DeletePatientButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_ControlPanel.add(PatientControlPanel2_ControlPanel_DeletePatientButton, gridBagConstraints);

        PatientControlPanel2_ControlPanel_SaveChangesButton.setText("Save Changes");
        PatientControlPanel2_ControlPanel_SaveChangesButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel2_ControlPanel_SaveChangesButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 6;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_ControlPanel.add(PatientControlPanel2_ControlPanel_SaveChangesButton, gridBagConstraints);

        PatientControlPanel2_ControlPanel_ResetChangesButton.setText("Reset Changes");
        PatientControlPanel2_ControlPanel_ResetChangesButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel2_ControlPanel_ResetChangesButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 7;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_ControlPanel.add(PatientControlPanel2_ControlPanel_ResetChangesButton, gridBagConstraints);

        PatientControlPanel2_ControlPanel_JSeparator1.setForeground(new java.awt.Color(204, 204, 204));
        PatientControlPanel2_ControlPanel_JSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_ControlPanel.add(PatientControlPanel2_ControlPanel_JSeparator1, gridBagConstraints);

        PatientControlPanel2_ControlPanel_PatientSearchInput.setText("Specify patient here.");
        PatientControlPanel2_ControlPanel_PatientSearchInput.addInputMethodListener(new java.awt.event.InputMethodListener() {
            public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
                PatientControlPanel2_ControlPanel_PatientSearchInputCaretPositionChanged(evt);
            }
            public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5);
        PatientControlPanel2_ControlPanel.add(PatientControlPanel2_ControlPanel_PatientSearchInput, gridBagConstraints);

        PatientControlPanel2_ControlPanel_PatientSearchList.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5);
        PatientControlPanel2_ControlPanel.add(PatientControlPanel2_ControlPanel_PatientSearchList, gridBagConstraints);

        PatientControlPanel2_ControlPanel_LoadPatientButton.setText("Load Patient");
        PatientControlPanel2_ControlPanel_LoadPatientButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel2_ControlPanel_LoadPatientButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_ControlPanel.add(PatientControlPanel2_ControlPanel_LoadPatientButton, gridBagConstraints);

        PatientControlPanel2_ControlPanel_JSeparator2.setForeground(new java.awt.Color(204, 204, 204));
        PatientControlPanel2_ControlPanel_JSeparator2.setOrientation(javax.swing.SwingConstants.VERTICAL);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_ControlPanel.add(PatientControlPanel2_ControlPanel_JSeparator2, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        PatientControlPanel2.add(PatientControlPanel2_ControlPanel, gridBagConstraints);

        PatientControlPanel2_LogoutButton.setText("Log out");
        PatientControlPanel2_LogoutButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                PatientControlPanel2_LogoutButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2.add(PatientControlPanel2_LogoutButton, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Treatment Record"));
        PatientControlPanel2_TreatmentPanel.setLayout(new java.awt.GridBagLayout());

        PatientControlPanel2_TreatmentPanel_ApptIDLabel.setText("Appt ID#");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_ApptIDLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_ApptIDValueLabel.setText("42");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_ApptIDValueLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_JSeparator4.setOrientation(javax.swing.SwingConstants.VERTICAL);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 6;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 15;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_JSeparator4, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_BloodPressureLabel.setText("Blood Pressure");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 10;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_BloodPressureLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_PulseLabel.setText("Pulse");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_PulseLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_TemperatureLabel.setText("Temperature");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 10;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_TemperatureLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_HeightLabel.setText("Height");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 11;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_HeightLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_WeightLabel.setText("Weight");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_WeightLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_DiagnosisLabel.setText("Diagnosis");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 14;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_DiagnosisLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_DoctorsOrdersLabel.setText("Doctors Orders");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 7;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_DoctorsOrdersLabel, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 13;
        gridBagConstraints.gridwidth = 6;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_JSeparator3, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_PulseSpinner.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(72), Integer.valueOf(0), null, Integer.valueOf(1)));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 0.1;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_PulseSpinner, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_BloodPressureOverLabel.setText("/");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 10;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_BloodPressureOverLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_BloodPressureSystolicSpinner.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(120), Integer.valueOf(0), null, Integer.valueOf(1)));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 10;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 0.1;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_BloodPressureSystolicSpinner, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_BloodPressureDiastolicSpinner.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(80), Integer.valueOf(0), null, Integer.valueOf(1)));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 11;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 0.1;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_BloodPressureDiastolicSpinner, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_TemperatureSpinner.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(98), Integer.valueOf(0), null, Integer.valueOf(1)));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 10;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 0.1;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_TemperatureSpinner, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_HeightSpinner.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(66), Integer.valueOf(0), null, Integer.valueOf(1)));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 11;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 0.1;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_HeightSpinner, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_WeightSpinner.setModel(new javax.swing.SpinnerNumberModel(Integer.valueOf(150), Integer.valueOf(0), null, Integer.valueOf(1)));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 0.1;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_WeightSpinner, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_HeightUnitLabel.setText("in");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 11;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_HeightUnitLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_TemperatureUnitLabel.setText("°F");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 10;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_TemperatureUnitLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_WeightUnitLabel.setText("lbs");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_WeightUnitLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_PulseUnitLabel.setText("bpm");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 12;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_PulseUnitLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_AttendingNurseSearchInput.setText("Specify nurse here.");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_AttendingNurseSearchInput, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_AttendingNurseSearchList.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_AttendingNurseSearchList, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_AttendingNurseLabel.setText("Attending Nurse");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_AttendingNurseLabel, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.gridwidth = 6;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_JSeparator1, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 9;
        gridBagConstraints.gridwidth = 6;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_JSeparator2, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_AttendingDoctorLabel.setText("Attending Doctor");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_AttendingDoctorLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_AttendingDoctorSearchInput.setText("Specify doctor here.");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 7;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_AttendingDoctorSearchInput, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_AttendingDoctorSearchList.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 8;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_AttendingDoctorSearchList, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_ReqDocLabel.setText("Requested Doctor");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_ReqDocLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_ApptReasonLabel.setText("Appt Reason");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_ApptReasonLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_ReqTimeLabel.setText("Requested Time");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_ReqTimeLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_DoctorsOrdersTextArea.setColumns(20);
        PatientControlPanel2_TreatmentPanel_DoctorsOrdersTextArea.setRows(5);
        PatientControlPanel2_TreatmentPanel_DoctorsOrdersTextArea.setText("Prescription:\n\nLab Work Performed:\n\nFollow-up Instructions:\n\nOther Instructions:");
        PatientControlPanel2_TreatmentPanel_DoctorsOrdersScrollPane.setViewportView(PatientControlPanel2_TreatmentPanel_DoctorsOrdersTextArea);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 7;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridheight = 14;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_DoctorsOrdersScrollPane, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_ReqTimeValueLabel.setText("April 15, 2011 @ 12:00");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_ReqTimeValueLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_ApptReasonValueLabel.setText("Papercut");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_ApptReasonValueLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_ReqDocValueLabel.setText("iRack Emup");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_ReqDocValueLabel, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_DiagnosisTextArea.setColumns(20);
        PatientControlPanel2_TreatmentPanel_DiagnosisTextArea.setRows(5);
        PatientControlPanel2_TreatmentPanel_DiagnosisTextArea.setText("Nothing to be worried about.");
        PatientControlPanel2_TreatmentPanel_DiagnosisScrollPane.setViewportView(PatientControlPanel2_TreatmentPanel_DiagnosisTextArea);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 14;
        gridBagConstraints.gridwidth = 5;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_DiagnosisScrollPane, gridBagConstraints);

        PatientControlPanel2_TreatmentPanel_BloodPressureUnitLabel.setText("mmHg");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 11;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        PatientControlPanel2_TreatmentPanel.add(PatientControlPanel2_TreatmentPanel_BloodPressureUnitLabel, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weighty = 1.0;
        PatientControlPanel2.add(PatientControlPanel2_TreatmentPanel, gridBagConstraints);

        CenterPanel.addTab("Patient Control 2", PatientControlPanel2);

        getContentPane().add(CenterPanel, java.awt.BorderLayout.PAGE_END);
        CenterPanel.getAccessibleContext().setAccessibleName("Login");

        TopLabel.setFont(new java.awt.Font("Tahoma", 3, 48)); // NOI18N
        TopLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        TopLabel.setText("COUNTERSTRIKE HOSPITAL");
        getContentPane().add(TopLabel, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>

    private void LoginPanel_SubmitButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                        
        // TODO add your handling code here:
        String username = LoginPanel_LoginPanel_UsernameField.getText();
        String password = String.valueOf(LoginPanel_LoginPanel_PasswordField.getPassword());

        if (Login.loginUser(username, password))
        {
            loadLoggedIn(Login.getUser(username));
        }
        else
        {
            loginStrikes++;
            if (loginStrikes == 3)
            {
                Login.changeUserSuspendState(username, true);
                javax.swing.JOptionPane.showMessageDialog(this, "Login Failed.\n" + username + "is now suspended.");
            }
            else
            {
                javax.swing.JOptionPane.showMessageDialog(this, "Login Failed.");
            }
        }
}                                                       

    private void PatientPanel_LogoutButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                          
        // TODO add your handling code here:
        loadLoggedIn(null);
    }                                                         

    private void AppointmentSchedulePanel_LogoutButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                      
        // TODO add your handling code here:
        loadLoggedIn(null);
    }                                                                     

    private void UserControlPanel_LogoutButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                              
        // TODO add your handling code here:
        loadLoggedIn(null);
    }                                                             

    private void PatientControlPanel1_LogoutButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                  
        // TODO add your handling code here:
        loadLoggedIn(null);
    }                                                                 

    private void PatientControlPanel2_LogoutButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                  
        // TODO add your handling code here:
        loadLoggedIn(null);
    }                                                                 

    private void PatientPanel_ReqPanel_PrevMonthButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                      
        // TODO add your handling code here:
        requestApptCalendar.roll(Calendar.MONTH, -1);
        refreshReqApptCalendar();
    }                                                                     

    private void PatientPanel_ReqPanel_NextMonthButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                      
        // TODO add your handling code here:
        requestApptCalendar.roll(Calendar.MONTH, 1);
        refreshReqApptCalendar();
    }                                                                     

    private void PatientPanel_ReqPanel_PrevDayButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                    
        // TODO add your handling code here:
        requestApptCalendar.roll(Calendar.DAY_OF_MONTH, -1);
        refreshReqApptCalendar();
    }                                                                   

    private void PatientPanel_ReqPanel_NextDayButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                    
        // TODO add your handling code here:
        requestApptCalendar.roll(Calendar.DAY_OF_MONTH, 1);
        refreshReqApptCalendar();
    }                                                                   

    private void PatientPanel_ReqPanel_PrevSlotButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                     
        // TODO add your handling code here:
        requestApptCalendar.roll(java.util.Calendar.MINUTE, -30);
        if (requestApptCalendar.get(Calendar.HOUR_OF_DAY) < 9)
        {
            requestApptCalendar.roll(Calendar.DAY_OF_MONTH, -1);
            requestApptCalendar.set(Calendar.HOUR_OF_DAY, 16);
            requestApptCalendar.set(Calendar.MINUTE, 59);
        }
        refreshReqApptCalendar();
    }                                                                    

    private void PatientPanel_ReqPanel_NextSlotButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                     
        // TODO add your handling code here:
        requestApptCalendar.roll(java.util.Calendar.MINUTE, 30);
        refreshReqApptCalendar();
    }                                                                    

    private void PatientPanel_ReqPanel_DesiredDoctorInputCaretPositionChanged(java.awt.event.InputMethodEvent evt) {                                                                              
        // TODO add your handling code here:
        PatientPanel_ReqPanel_DesiredDoctorList.setModel(new javax.swing.DefaultComboBoxModel(new String[]{PatientPanel_ReqPanel_DesiredDoctorInput.getText()}));
        PatientPanel_ReqPanel_DesiredDoctorList.setSelectedIndex(0);
    }                                                                             

    private void PatientPanel_ReqPanel_SubmitButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                   
        // TODO add your handling code here:
        Appointment.createAppointment(userSubject.getUsername(), requestApptCalendar.getTime(), (java.sql.Time)requestApptCalendar.getTime(), null, null, null, 0);
        javax.swing.JOptionPane.showMessageDialog(this, "Request successful.");
        requestApptCalendar = new java.util.GregorianCalendar();
        refreshReqApptCalendar();
        PatientPanel_ReqPanel_ReasonTextField.setText("Specify reason for appointment here.");
        PatientPanel_ReqPanel_DesiredDoctorInput.setText("Specify desired doctor here.");
        PatientPanel_ReqPanel_DesiredDoctorList.setModel(new javax.swing.DefaultComboBoxModel(new String[]{""}));
        PatientPanel_ReqPanel_DesiredDoctorList.setSelectedIndex(0);
    }                                                                  

    private void PatientPanel_ReqPanel_CancelButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                   
        // TODO add your handling code here:
        requestApptCalendar = new java.util.GregorianCalendar();
        refreshReqApptCalendar();
        PatientPanel_ReqPanel_ReasonTextField.setText("Specify reason for appointment here.");
        PatientPanel_ReqPanel_DesiredDoctorInput.setText("Specify desired doctor here.");
        PatientPanel_ReqPanel_DesiredDoctorList.setModel(new javax.swing.DefaultComboBoxModel(new String[]{""}));
        PatientPanel_ReqPanel_DesiredDoctorList.setSelectedIndex(0);
    }                                                                  

    private void AppointmentSchedulePanel_SchedulePanel_PrevApptButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                      
        // TODO add your handling code here:
    }                                                                                     

    private void AppointmentSchedulePanel_SchedulePanel_DoApptButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                    
        // TODO add your handling code here:
    }                                                                                   

    private void AppointmentSchedulePanel_SchedulePanel_NextApptButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                      
        // TODO add your handling code here:
    }                                                                                     

    private void UserControlPanel_ControlPanel_UserSearchInputCaretPositionChanged(java.awt.event.InputMethodEvent evt) {                                                                                   
        // TODO add your handling code here:
    }                                                                                  

    private void UserControlPanel_ControlPanel_LoadUserButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                             
        // TODO add your handling code here:
}                                                                            

    private void UserControlPanel_ControlPanel_ClearUserButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                              
        // TODO add your handling code here:
}                                                                             

    private void UserControlPanel_ControlPanel_DeleteUserButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                               
        // TODO add your handling code here:
}                                                                              

    private void UserControlPanel_ControlPanel_SaveChangesButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                
        // TODO add your handling code here:
}                                                                               

    private void UserControlPanel_ControlPanel_ResetChangesButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                 
        // TODO add your handling code here:
}                                                                                

    private void UserControlPanel_UserPanel_ChangePasswordButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                
        // TODO add your handling code here:
}                                                                               

    private void PatientControlPanel1_ControlPanel_PatientSearchInputCaretPositionChanged(java.awt.event.InputMethodEvent evt) {                                                                                          
        // TODO add your handling code here:
}                                                                                         

    private void PatientControlPanel1_ControlPanel_LoadPatientButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                    
        // TODO add your handling code here:
}                                                                                   

    private void PatientControlPanel1_ControlPanel_ClearPatientButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                     
        // TODO add your handling code here:
}                                                                                    

    private void PatientControlPanel1_ControlPanel_DeletePatientButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                      
        // TODO add your handling code here:
}                                                                                     

    private void PatientControlPanel1_ControlPanel_SaveChangesButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                    
        // TODO add your handling code here:
}                                                                                   

    private void PatientControlPanel1_ControlPanel_ResetChangesButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                     
        // TODO add your handling code here:
}                                                                                    

    private void PatientControlPanel1_PatientPanel_ChangePasswordButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                       
        // TODO add your handling code here:
}                                                                                      

    private void PatientControlPanel1_PatientPanel_PrevTreatmentButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                      
        // TODO add your handling code here:
}                                                                                     

    private void PatientControlPanel1_PatientPanel_EditTreatmentButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                      
        // TODO add your handling code here:
}                                                                                     

    private void PatientControlPanel1_PatientPanel_NextTreatmentButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                      
        // TODO add your handling code here:
}                                                                                     

    private void PatientControlPanel2_ControlPanel_PatientSearchInputCaretPositionChanged(java.awt.event.InputMethodEvent evt) {                                                                                          
        // TODO add your handling code here:
}                                                                                         

    private void PatientControlPanel2_ControlPanel_LoadPatientButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                    
        // TODO add your handling code here:
}                                                                                   

    private void PatientControlPanel2_ControlPanel_ClearPatientButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                     
        // TODO add your handling code here:
}                                                                                    

    private void PatientControlPanel2_ControlPanel_DeletePatientButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                      
        // TODO add your handling code here:
}                                                                                     

    private void PatientControlPanel2_ControlPanel_SaveChangesButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                    
        // TODO add your handling code here:
}                                                                                   

    private void PatientControlPanel2_ControlPanel_ResetChangesButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                                                     
        // TODO add your handling code here:
}                                                                                    

    private void PatientPanel_MedHistoryPanel_PrevButtonActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }

    private void PatientPanel_MedHistoryPanel_NextButtonActionPerformed(java.awt.event.ActionEvent evt) {
        // TODO add your handling code here:
    }

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new GUI_Frame().setVisible(true);
            }
        });
    }

    private User    loggedIn       = null;
    private User    userSubject    = null;
    private Patient patientSubject = null;
    private int     loginStrikes   = 0;
    private Calendar requestApptCalendar = new java.util.GregorianCalendar();

    /**
     * Refreshes the calendar display for the appointment requesting mechanism
     */
    private void refreshReqApptCalendar()
    {
        if (requestApptCalendar.get(Calendar.HOUR_OF_DAY) >= 17)
        {
            requestApptCalendar.roll(Calendar.DAY_OF_MONTH, 1);
            requestApptCalendar.set(Calendar.HOUR_OF_DAY, 0);
        }
        if (requestApptCalendar.get(Calendar.HOUR_OF_DAY) < 9)
        {
            requestApptCalendar.set(Calendar.HOUR_OF_DAY, 9);
            requestApptCalendar.set(Calendar.MINUTE, 0);
        }
        else if (requestApptCalendar.get(Calendar.MINUTE) < 30)
        {
            requestApptCalendar.set(Calendar.MINUTE, 30);
        }
        else
        {
            requestApptCalendar.set(Calendar.MINUTE, 0);
            requestApptCalendar.roll(Calendar.HOUR_OF_DAY, 1);
        }
        PatientPanel_ReqPanel_ReqTimeLabel.setText(requestApptCalendar.getDisplayName(Calendar.MONTH, Calendar.SHORT, Locale.US) + " "
                                                 + requestApptCalendar.get(Calendar.DAY_OF_MONTH) + ", "
                                                 + requestApptCalendar.get(Calendar.YEAR) + " @ "
                                                 + requestApptCalendar.get(Calendar.HOUR_OF_DAY) + ":"
                                                 + requestApptCalendar.get(Calendar.MINUTE));
    }

    /**
     * Returns a boolean based on whether a user has the privilege
     * @param user the user, or null if there is no user
     * @param values the values array
     * @return true, if the user has the privilege
     */
    private boolean userPrivileges(User user, boolean[] values)
    {
        return (user == null && values[0])
            || (user != null && user.getAccessLevel() == User.accessPatient && values[1])
            || (user != null && user.getAccessLevel() == User.accessNurse && values[2])
            || (user != null && user.getAccessLevel() == User.accessDoctor && values[3])
            || (user != null && user.getAccessLevel() == User.accessSysAdmin && values[4]);
    }

    /**
     * Returns a boolean based on whether a user has the privilege
     * @param user the user, or null if there is no user
     * @param values the values array
     * @return true, if the user has the privilege
     */
    private boolean userPrivileges(User user, int[] values)
    {
        return userPrivileges(user, new boolean[] {values[0] != 0, values[1] != 0, values[2] != 0, values[3] != 0, values[4] != 0});
    }

    /**
     * Loads the given user, with the corresponding privileges
     * @param user the given user
     */
    private void loadLoggedIn(User user)
    {
        loggedIn = user;
        CenterPanel.setEnabledAt(0, userPrivileges(user, new int[] {1, 0,      0, 0, 0}));
        CenterPanel.setEnabledAt(1, userPrivileges(user, new int[] {0, 1,      0, 0, 0}));
        CenterPanel.setEnabledAt(2, userPrivileges(user, new int[] {0, 0,      1, 1, 1}));
        CenterPanel.setEnabledAt(3, userPrivileges(user, new int[] {0, 0,      0, 0, 1}));
        CenterPanel.setEnabledAt(4, userPrivileges(user, new int[] {0, 0/*?*/, 1, 1, 1}));
        CenterPanel.setEnabledAt(5, userPrivileges(user, new int[] {0, 0,      0, 0, 0}));
        CenterPanel.setSelectedIndex(user == null ? 0 : user.getAccessLevel() == User.accessPatient ? 1 : 2);
        loadUserSubject(null);
        loadPatientSubject(user != null && user.getAccessLevel() == User.accessPatient ? Patient.readPatient(user.getUsername()) : null);


/*
    private javax.swing.JPanel         AppointmentSchedulePanel;
    private javax.swing.JButton        AppointmentSchedulePanel_LogoutButton;
    private javax.swing.JPanel         AppointmentSchedulePanel_SchedulePanel;
    private javax.swing.JTextArea      AppointmentSchedulePanel_SchedulePanel_ApptViewTextArea;
    private javax.swing.JButton        AppointmentSchedulePanel_SchedulePanel_DoApptButton;
    private javax.swing.JButton        AppointmentSchedulePanel_SchedulePanel_NextApptButton;
    private javax.swing.JButton        AppointmentSchedulePanel_SchedulePanel_PrevApptButton;
    private javax.swing.JTabbedPane    CenterPanel;
    private javax.swing.JPanel         LoginPanel;
    private javax.swing.JPanel         LoginPanel_LoginPanel;
    private javax.swing.JPasswordField LoginPanel_LoginPanel_PasswordField;
    private javax.swing.JLabel         LoginPanel_LoginPanel_PasswordLabel;
    private javax.swing.JTextField     LoginPanel_LoginPanel_UsernameField;
    private javax.swing.JLabel         LoginPanel_LoginPanel_UsernameLabel;
    private javax.swing.JButton        LoginPanel_SubmitButton;
    private javax.swing.JPanel         PatientControlPanel1;
    private javax.swing.JPanel         PatientControlPanel1_ControlPanel;
    private javax.swing.JButton        PatientControlPanel1_ControlPanel_ClearPatientButton;
    private javax.swing.JButton        PatientControlPanel1_ControlPanel_DeletePatientButton;
    private javax.swing.JButton        PatientControlPanel1_ControlPanel_LoadPatientButton;
    private javax.swing.JTextField PatientControlPanel1_ControlPanel_PatientSearchInput;
    private javax.swing.JComboBox PatientControlPanel1_ControlPanel_PatientSearchList;
    private javax.swing.JButton        PatientControlPanel1_ControlPanel_ResetChangesButton;
    private javax.swing.JButton        PatientControlPanel1_ControlPanel_SaveChangesButton;
    private javax.swing.JButton        PatientControlPanel1_LogoutButton;
    private javax.swing.JPanel         PatientControlPanel1_PatientPanel;
    private javax.swing.JLabel         PatientControlPanel1_PatientPanel_AddressLine1Label;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_AddressLine1TextField;
    private javax.swing.JLabel         PatientControlPanel1_PatientPanel_AddressLine2Label;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_AddressLine2TextField;
    private javax.swing.JLabel         PatientControlPanel1_PatientPanel_AddressLine3Label;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_AddressLine3TextField;
    private javax.swing.JLabel         PatientControlPanel1_PatientPanel_AgeLabel;
    private javax.swing.JSpinner PatientControlPanel1_PatientPanel_AgeSpinner;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_AllergiesLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_AllergiesTextField;
    private javax.swing.JButton PatientControlPanel1_PatientPanel_ChangePasswordButton;
    private javax.swing.JButton PatientControlPanel1_PatientPanel_EditTreatmentButton;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_EmailLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_EmailTextField;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_FirstNameLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_FirstNameTextField;
    private javax.swing.JComboBox PatientControlPanel1_PatientPanel_GenderComboBox;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_GenderLabel;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_IDLabel;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_IDValueLabel;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_InsuranceLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_InsuranceTextField;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_LastNameLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_LastNameTextField;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_MiddleNameLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_MiddleNameTextField;
    private javax.swing.JButton PatientControlPanel1_PatientPanel_NextTreatmentButton;
    private javax.swing.JPasswordField PatientControlPanel1_PatientPanel_PasswordField;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_PasswordLabel;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_PharmacyLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_PharmacyTextField;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_PhoneLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_PhoneTextField;
    private javax.swing.JButton PatientControlPanel1_PatientPanel_PrevTreatmentButton;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_SuffixLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_SuffixTextField;
    private javax.swing.JCheckBox PatientControlPanel1_PatientPanel_SuspendedCheckBox;
    private javax.swing.JComboBox PatientControlPanel1_PatientPanel_TitleComboBox;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_TitleLabel;
    private javax.swing.JTextArea PatientControlPanel1_PatientPanel_TreatmentViewTextArea;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_UsernameLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_UsernameTextField;
    private javax.swing.JPanel PatientControlPanel2;
    private javax.swing.JPanel PatientControlPanel2_ControlPanel;
    private javax.swing.JButton PatientControlPanel2_ControlPanel_ClearPatientButton;
    private javax.swing.JButton PatientControlPanel2_ControlPanel_DeletePatientButton;
    private javax.swing.JButton PatientControlPanel2_ControlPanel_LoadPatientButton;
    private javax.swing.JTextField PatientControlPanel2_ControlPanel_PatientSearchInput;
    private javax.swing.JComboBox PatientControlPanel2_ControlPanel_PatientSearchList;
    private javax.swing.JButton PatientControlPanel2_ControlPanel_ResetChangesButton;
    private javax.swing.JButton PatientControlPanel2_ControlPanel_SaveChangesButton;
    private javax.swing.JButton PatientControlPanel2_LogoutButton;
    private javax.swing.JPanel PatientControlPanel2_TreatmentPanel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ApptIDLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ApptIDValueLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ApptReasonLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ApptReasonValueLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_AttendingDoctorLabel;
    private javax.swing.JTextField PatientControlPanel2_TreatmentPanel_AttendingDoctorSearchInput;
    private javax.swing.JComboBox PatientControlPanel2_TreatmentPanel_AttendingDoctorSearchList;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_AttendingNurseLabel;
    private javax.swing.JTextField PatientControlPanel2_TreatmentPanel_AttendingNurseSearchInput;
    private javax.swing.JComboBox PatientControlPanel2_TreatmentPanel_AttendingNurseSearchList;
    private javax.swing.JSpinner PatientControlPanel2_TreatmentPanel_BloodPressureDiastolicSpinner;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_BloodPressureLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_BloodPressureOverLabel;
    private javax.swing.JSpinner PatientControlPanel2_TreatmentPanel_BloodPressureSystolicSpinner;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_BloodPressureUnitLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_DiagnosisLabel;
    private javax.swing.JTextArea PatientControlPanel2_TreatmentPanel_DiagnosisTextArea;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_DoctorsOrdersLabel;
    private javax.swing.JTextArea PatientControlPanel2_TreatmentPanel_DoctorsOrdersTextArea;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_HeightLabel;
    private javax.swing.JSpinner PatientControlPanel2_TreatmentPanel_HeightSpinner;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_HeightUnitLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_PulseLabel;
    private javax.swing.JSpinner PatientControlPanel2_TreatmentPanel_PulseSpinner;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_PulseUnitLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ReqDocLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ReqDocValueLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ReqTimeLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ReqTimeValueLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_TemperatureLabel;
    private javax.swing.JSpinner PatientControlPanel2_TreatmentPanel_TemperatureSpinner;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_TemperatureUnitLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_WeightLabel;
    private javax.swing.JSpinner PatientControlPanel2_TreatmentPanel_WeightSpinner;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_WeightUnitLabel;
    private javax.swing.JPanel PatientPanel;
    private javax.swing.JPanel PatientPanel_InfoPanel;
    private javax.swing.JTextArea PatientPanel_InfoPanel_InfoTextArea;
    private javax.swing.JButton PatientPanel_LogoutButton;
    private javax.swing.JPanel PatientPanel_MedHistoryPanel;
    private javax.swing.JButton PatientPanel_MedHistoryPanel_NextButton;
    private javax.swing.JButton PatientPanel_MedHistoryPanel_PrevButton;
    private javax.swing.JTextArea PatientPanel_MedHistoryPanel_ViewTextArea;
    private javax.swing.JPanel PatientPanel_ReqPanel;
    private javax.swing.JButton PatientPanel_ReqPanel_CancelButton;
    private javax.swing.JTextField PatientPanel_ReqPanel_DesiredDoctorInput;
    private javax.swing.JLabel PatientPanel_ReqPanel_DesiredDoctorLabel;
    private javax.swing.JComboBox PatientPanel_ReqPanel_DesiredDoctorList;
    private javax.swing.JButton PatientPanel_ReqPanel_NextDayButton;
    private javax.swing.JButton PatientPanel_ReqPanel_NextMonthButton;
    private javax.swing.JButton PatientPanel_ReqPanel_NextSlotButton;
    private javax.swing.JButton PatientPanel_ReqPanel_PrevDayButton;
    private javax.swing.JButton PatientPanel_ReqPanel_PrevMonthButton;
    private javax.swing.JButton PatientPanel_ReqPanel_PrevSlotButton;
    private javax.swing.JTextField PatientPanel_ReqPanel_ReasonTextField;
    private javax.swing.JLabel PatientPanel_ReqPanel_ReqTimeLabel;
    private javax.swing.JButton PatientPanel_ReqPanel_SubmitButton;
    private javax.swing.JLabel TopLabel;
    private javax.swing.JPanel UserControlPanel;
    private javax.swing.JPanel UserControlPanel_ControlPanel;
    private javax.swing.JButton UserControlPanel_ControlPanel_ClearUserButton;
    private javax.swing.JButton UserControlPanel_ControlPanel_DeleteUserButton;
    private javax.swing.JButton UserControlPanel_ControlPanel_LoadUserButton;
    private javax.swing.JButton UserControlPanel_ControlPanel_ResetChangesButton;
    private javax.swing.JButton UserControlPanel_ControlPanel_SaveChangesButton;
    private javax.swing.JTextField UserControlPanel_ControlPanel_UserSearchInput;
    private javax.swing.JComboBox UserControlPanel_ControlPanel_UserSearchList;
    private javax.swing.JButton UserControlPanel_LogoutButton;
    private javax.swing.JPanel UserControlPanel_UserPanel;
    private javax.swing.JButton UserControlPanel_UserPanel_ChangePasswordButton;
    private javax.swing.JLabel UserControlPanel_UserPanel_FirstNameLabel;
    private javax.swing.JTextField UserControlPanel_UserPanel_FirstNameTextField;
    private javax.swing.JLabel UserControlPanel_UserPanel_IDLabel;
    private javax.swing.JLabel UserControlPanel_UserPanel_IDValueLabel;
    private javax.swing.JLabel UserControlPanel_UserPanel_LastNameLabel;
    private javax.swing.JTextField UserControlPanel_UserPanel_LastNameTextField;
    private javax.swing.JComboBox UserControlPanel_UserPanel_LevelComboBox;
    private javax.swing.JLabel UserControlPanel_UserPanel_LevelLabel;
    private javax.swing.JLabel UserControlPanel_UserPanel_MiddleNameLabel;
    private javax.swing.JTextField UserControlPanel_UserPanel_MiddleNameTextField;
    private javax.swing.JPasswordField UserControlPanel_UserPanel_PasswordField;
    private javax.swing.JLabel UserControlPanel_UserPanel_PasswordLabel;
    private javax.swing.JLabel UserControlPanel_UserPanel_SuffixLabel;
    private javax.swing.JTextField UserControlPanel_UserPanel_SuffixTextField;
    private javax.swing.JCheckBox UserControlPanel_UserPanel_SuspendedCheckBox;
    private javax.swing.JComboBox UserControlPanel_UserPanel_TitleComboBox;
    private javax.swing.JLabel UserControlPanel_UserPanel_TitleLabel;
    private javax.swing.JLabel UserControlPanel_UserPanel_UsernameLabel;
    private javax.swing.JTextField UserControlPanel_UserPanel_UsernameTextField;*/
    }

    /**
     * Loads the given user subject into the (sysadmin) user control panel
     * @param user the given user
     */
    private void loadUserSubject(User user)
    {
        userSubject = user;
        UserControlPanel_UserPanel_IDValueLabel.setText(user == null ? "42" : "42");
        UserControlPanel_UserPanel_SuspendedCheckBox.setSelected(user == null ? false : user.getSuspended());
        UserControlPanel_UserPanel_LevelComboBox.setSelectedIndex(user == null ? 0 : user.getAccessLevel());
        UserControlPanel_UserPanel_PasswordField.setText("");
        UserControlPanel_UserPanel_TitleComboBox.setSelectedItem(user == null ? 0 : user.getName().getTitle());
        UserControlPanel_UserPanel_FirstNameTextField.setText(user == null ? "" : user.getName().getFirstName());
        UserControlPanel_UserPanel_MiddleNameTextField.setText(user == null ? "" : user.getName().getMiddleName());
        UserControlPanel_UserPanel_LastNameTextField.setText(user == null ? "" : user.getName().getLastName());
        UserControlPanel_UserPanel_SuffixTextField.setText(user == null ? "" : user.getName().getSuffix());
    }

    private void saveUserSubject()
    {
        if (userSubject == null)
        {
            userSubject = new User[] {new Patient(), new Nurse(), new Doctor(), new SystemAdmin()}[UserControlPanel_UserPanel_LevelComboBox.getSelectedIndex()];
        }
        userSubject.setSuspendState(UserControlPanel_UserPanel_SuspendedCheckBox.isSelected());
        userSubject.setAccessLevel(UserControlPanel_UserPanel_LevelComboBox.getSelectedIndex());
        userSubject.setUsername(UserControlPanel_UserPanel_UsernameTextField.getText());
        userSubject.setName(new Name(UserControlPanel_UserPanel_TitleComboBox.getSelectedItem(),
                                     UserControlPanel_UserPanel_FirstNameTextField.getText(),
                                     UserControlPanel_UserPanel_MiddleNameTextField.getText(),
                                     UserControlPanel_UserPanel_LastNameTextField.getText(),
                                     UserControlPanel_UserPanel_SuffixTextField.getText()));
        userSubject.setPasswordHash(new PasswordHash(String.valueOf(UserControlPanel_UserPanel_PasswordField.getPassword())));
    }
    
    
    // Variables declaration - do not modify
    private javax.swing.JPanel AppointmentSchedulePanel;
    private javax.swing.JButton AppointmentSchedulePanel_LogoutButton;
    private javax.swing.JPanel AppointmentSchedulePanel_SchedulePanel;
    private javax.swing.JScrollPane AppointmentSchedulePanel_SchedulePanel_ApptViewScrollPane;
    private javax.swing.JTextArea AppointmentSchedulePanel_SchedulePanel_ApptViewTextArea;
    private javax.swing.JButton AppointmentSchedulePanel_SchedulePanel_DoApptButton;
    private javax.swing.JButton AppointmentSchedulePanel_SchedulePanel_NextApptButton;
    private javax.swing.JButton AppointmentSchedulePanel_SchedulePanel_PrevApptButton;
    private javax.swing.JTabbedPane CenterPanel;
    private javax.swing.JPanel LoginPanel;
    private javax.swing.JPanel LoginPanel_LoginPanel;
    private javax.swing.JPasswordField LoginPanel_LoginPanel_PasswordField;
    private javax.swing.JLabel LoginPanel_LoginPanel_PasswordLabel;
    private javax.swing.JTextField LoginPanel_LoginPanel_UsernameField;
    private javax.swing.JLabel LoginPanel_LoginPanel_UsernameLabel;
    private javax.swing.JButton LoginPanel_SubmitButton;
    private javax.swing.JPanel PatientControlPanel1;
    private javax.swing.JPanel PatientControlPanel1_ControlPanel;
    private javax.swing.JButton PatientControlPanel1_ControlPanel_ClearPatientButton;
    private javax.swing.JButton PatientControlPanel1_ControlPanel_DeletePatientButton;
    private javax.swing.JSeparator PatientControlPanel1_ControlPanel_JSeparator1;
    private javax.swing.JSeparator PatientControlPanel1_ControlPanel_JSeparator2;
    private javax.swing.JButton PatientControlPanel1_ControlPanel_LoadPatientButton;
    private javax.swing.JTextField PatientControlPanel1_ControlPanel_PatientSearchInput;
    private javax.swing.JComboBox PatientControlPanel1_ControlPanel_PatientSearchList;
    private javax.swing.JButton PatientControlPanel1_ControlPanel_ResetChangesButton;
    private javax.swing.JButton PatientControlPanel1_ControlPanel_SaveChangesButton;
    private javax.swing.JButton PatientControlPanel1_LogoutButton;
    private javax.swing.JPanel PatientControlPanel1_PatientPanel;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_AddressLine1Label;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_AddressLine1TextField;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_AddressLine2Label;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_AddressLine2TextField;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_AddressLine3Label;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_AddressLine3TextField;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_AgeLabel;
    private javax.swing.JSpinner PatientControlPanel1_PatientPanel_AgeSpinner;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_AllergiesLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_AllergiesTextField;
    private javax.swing.JButton PatientControlPanel1_PatientPanel_ChangePasswordButton;
    private javax.swing.JButton PatientControlPanel1_PatientPanel_EditTreatmentButton;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_EmailLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_EmailTextField;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_FirstNameLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_FirstNameTextField;
    private javax.swing.JComboBox PatientControlPanel1_PatientPanel_GenderComboBox;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_GenderLabel;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_IDLabel;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_IDValueLabel;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_InsuranceLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_InsuranceTextField;
    private javax.swing.JSeparator PatientControlPanel1_PatientPanel_JSeparator1;
    private javax.swing.JSeparator PatientControlPanel1_PatientPanel_JSeparator2;
    private javax.swing.JSeparator PatientControlPanel1_PatientPanel_JSeparator3;
    private javax.swing.JSeparator PatientControlPanel1_PatientPanel_JSeparator4;
    private javax.swing.JSeparator PatientControlPanel1_PatientPanel_JSeparator5;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_LastNameLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_LastNameTextField;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_MiddleNameLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_MiddleNameTextField;
    private javax.swing.JButton PatientControlPanel1_PatientPanel_NextTreatmentButton;
    private javax.swing.JPasswordField PatientControlPanel1_PatientPanel_PasswordField;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_PasswordLabel;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_PharmacyLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_PharmacyTextField;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_PhoneLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_PhoneTextField;
    private javax.swing.JButton PatientControlPanel1_PatientPanel_PrevTreatmentButton;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_SuffixLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_SuffixTextField;
    private javax.swing.JCheckBox PatientControlPanel1_PatientPanel_SuspendedCheckBox;
    private javax.swing.JComboBox PatientControlPanel1_PatientPanel_TitleComboBox;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_TitleLabel;
    private javax.swing.JScrollPane PatientControlPanel1_PatientPanel_TreatmentViewScrollPane;
    private javax.swing.JTextArea PatientControlPanel1_PatientPanel_TreatmentViewTextArea;
    private javax.swing.JLabel PatientControlPanel1_PatientPanel_UsernameLabel;
    private javax.swing.JTextField PatientControlPanel1_PatientPanel_UsernameTextField;
    private javax.swing.JPanel PatientControlPanel2;
    private javax.swing.JPanel PatientControlPanel2_ControlPanel;
    private javax.swing.JButton PatientControlPanel2_ControlPanel_ClearPatientButton;
    private javax.swing.JButton PatientControlPanel2_ControlPanel_DeletePatientButton;
    private javax.swing.JSeparator PatientControlPanel2_ControlPanel_JSeparator1;
    private javax.swing.JSeparator PatientControlPanel2_ControlPanel_JSeparator2;
    private javax.swing.JButton PatientControlPanel2_ControlPanel_LoadPatientButton;
    private javax.swing.JTextField PatientControlPanel2_ControlPanel_PatientSearchInput;
    private javax.swing.JComboBox PatientControlPanel2_ControlPanel_PatientSearchList;
    private javax.swing.JButton PatientControlPanel2_ControlPanel_ResetChangesButton;
    private javax.swing.JButton PatientControlPanel2_ControlPanel_SaveChangesButton;
    private javax.swing.JButton PatientControlPanel2_LogoutButton;
    private javax.swing.JPanel PatientControlPanel2_TreatmentPanel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ApptIDLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ApptIDValueLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ApptReasonLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ApptReasonValueLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_AttendingDoctorLabel;
    private javax.swing.JTextField PatientControlPanel2_TreatmentPanel_AttendingDoctorSearchInput;
    private javax.swing.JComboBox PatientControlPanel2_TreatmentPanel_AttendingDoctorSearchList;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_AttendingNurseLabel;
    private javax.swing.JTextField PatientControlPanel2_TreatmentPanel_AttendingNurseSearchInput;
    private javax.swing.JComboBox PatientControlPanel2_TreatmentPanel_AttendingNurseSearchList;
    private javax.swing.JSpinner PatientControlPanel2_TreatmentPanel_BloodPressureDiastolicSpinner;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_BloodPressureLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_BloodPressureOverLabel;
    private javax.swing.JSpinner PatientControlPanel2_TreatmentPanel_BloodPressureSystolicSpinner;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_BloodPressureUnitLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_DiagnosisLabel;
    private javax.swing.JScrollPane PatientControlPanel2_TreatmentPanel_DiagnosisScrollPane;
    private javax.swing.JTextArea PatientControlPanel2_TreatmentPanel_DiagnosisTextArea;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_DoctorsOrdersLabel;
    private javax.swing.JScrollPane PatientControlPanel2_TreatmentPanel_DoctorsOrdersScrollPane;
    private javax.swing.JTextArea PatientControlPanel2_TreatmentPanel_DoctorsOrdersTextArea;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_HeightLabel;
    private javax.swing.JSpinner PatientControlPanel2_TreatmentPanel_HeightSpinner;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_HeightUnitLabel;
    private javax.swing.JSeparator PatientControlPanel2_TreatmentPanel_JSeparator1;
    private javax.swing.JSeparator PatientControlPanel2_TreatmentPanel_JSeparator2;
    private javax.swing.JSeparator PatientControlPanel2_TreatmentPanel_JSeparator3;
    private javax.swing.JSeparator PatientControlPanel2_TreatmentPanel_JSeparator4;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_PulseLabel;
    private javax.swing.JSpinner PatientControlPanel2_TreatmentPanel_PulseSpinner;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_PulseUnitLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ReqDocLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ReqDocValueLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ReqTimeLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_ReqTimeValueLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_TemperatureLabel;
    private javax.swing.JSpinner PatientControlPanel2_TreatmentPanel_TemperatureSpinner;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_TemperatureUnitLabel;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_WeightLabel;
    private javax.swing.JSpinner PatientControlPanel2_TreatmentPanel_WeightSpinner;
    private javax.swing.JLabel PatientControlPanel2_TreatmentPanel_WeightUnitLabel;
    private javax.swing.JPanel PatientPanel;
    private javax.swing.JPanel PatientPanel_InfoPanel;
    private javax.swing.JScrollPane PatientPanel_InfoPanel_InfoScrollPane;
    private javax.swing.JTextArea PatientPanel_InfoPanel_InfoTextArea;
    private javax.swing.JButton PatientPanel_LogoutButton;
    private javax.swing.JPanel PatientPanel_MedHistoryPanel;
    private javax.swing.JButton PatientPanel_MedHistoryPanel_NextButton;
    private javax.swing.JButton PatientPanel_MedHistoryPanel_PrevButton;
    private javax.swing.JScrollPane PatientPanel_MedHistoryPanel_ViewScrollPane;
    private javax.swing.JTextArea PatientPanel_MedHistoryPanel_ViewTextArea;
    private javax.swing.JPanel PatientPanel_ReqPanel;
    private javax.swing.JButton PatientPanel_ReqPanel_CancelButton;
    private javax.swing.JTextField PatientPanel_ReqPanel_DesiredDoctorInput;
    private javax.swing.JLabel PatientPanel_ReqPanel_DesiredDoctorLabel;
    private javax.swing.JComboBox PatientPanel_ReqPanel_DesiredDoctorList;
    private javax.swing.JSeparator PatientPanel_ReqPanel_JSeparator1;
    private javax.swing.JSeparator PatientPanel_ReqPanel_JSeparator2;
    private javax.swing.JSeparator PatientPanel_ReqPanel_JSeparator3;
    private javax.swing.JButton PatientPanel_ReqPanel_NextDayButton;
    private javax.swing.JButton PatientPanel_ReqPanel_NextMonthButton;
    private javax.swing.JButton PatientPanel_ReqPanel_NextSlotButton;
    private javax.swing.JButton PatientPanel_ReqPanel_PrevDayButton;
    private javax.swing.JButton PatientPanel_ReqPanel_PrevMonthButton;
    private javax.swing.JButton PatientPanel_ReqPanel_PrevSlotButton;
    private javax.swing.JTextField PatientPanel_ReqPanel_ReasonTextField;
    private javax.swing.JLabel PatientPanel_ReqPanel_ReqTimeLabel;
    private javax.swing.JButton PatientPanel_ReqPanel_SubmitButton;
    private javax.swing.JLabel TopLabel;
    private javax.swing.JPanel UserControlPanel;
    private javax.swing.JPanel UserControlPanel_ControlPanel;
    private javax.swing.JButton UserControlPanel_ControlPanel_ClearUserButton;
    private javax.swing.JButton UserControlPanel_ControlPanel_DeleteUserButton;
    private javax.swing.JSeparator UserControlPanel_ControlPanel_JSeparator1;
    private javax.swing.JSeparator UserControlPanel_ControlPanel_JSeparator2;
    private javax.swing.JButton UserControlPanel_ControlPanel_LoadUserButton;
    private javax.swing.JButton UserControlPanel_ControlPanel_ResetChangesButton;
    private javax.swing.JButton UserControlPanel_ControlPanel_SaveChangesButton;
    private javax.swing.JTextField UserControlPanel_ControlPanel_UserSearchInput;
    private javax.swing.JComboBox UserControlPanel_ControlPanel_UserSearchList;
    private javax.swing.JButton UserControlPanel_LogoutButton;
    private javax.swing.JPanel UserControlPanel_UserPanel;
    private javax.swing.JButton UserControlPanel_UserPanel_ChangePasswordButton;
    private javax.swing.JLabel UserControlPanel_UserPanel_FirstNameLabel;
    private javax.swing.JTextField UserControlPanel_UserPanel_FirstNameTextField;
    private javax.swing.JLabel UserControlPanel_UserPanel_IDLabel;
    private javax.swing.JLabel UserControlPanel_UserPanel_IDValueLabel;
    private javax.swing.JSeparator UserControlPanel_UserPanel_JSeparator1;
    private javax.swing.JLabel UserControlPanel_UserPanel_LastNameLabel;
    private javax.swing.JTextField UserControlPanel_UserPanel_LastNameTextField;
    private javax.swing.JComboBox UserControlPanel_UserPanel_LevelComboBox;
    private javax.swing.JLabel UserControlPanel_UserPanel_LevelLabel;
    private javax.swing.JLabel UserControlPanel_UserPanel_MiddleNameLabel;
    private javax.swing.JTextField UserControlPanel_UserPanel_MiddleNameTextField;
    private javax.swing.JPasswordField UserControlPanel_UserPanel_PasswordField;
    private javax.swing.JLabel UserControlPanel_UserPanel_PasswordLabel;
    private javax.swing.JLabel UserControlPanel_UserPanel_SuffixLabel;
    private javax.swing.JTextField UserControlPanel_UserPanel_SuffixTextField;
    private javax.swing.JCheckBox UserControlPanel_UserPanel_SuspendedCheckBox;
    private javax.swing.JComboBox UserControlPanel_UserPanel_TitleComboBox;
    private javax.swing.JLabel UserControlPanel_UserPanel_TitleLabel;
    private javax.swing.JLabel UserControlPanel_UserPanel_UsernameLabel;
    private javax.swing.JTextField UserControlPanel_UserPanel_UsernameTextField;
    // End of variables declaration

}
